/**
 * Created by Heiliuer on 2018/3/21 0021.
 */
const Koa = require('koa')
const fs = require('fs.promised')
const app = new Koa()

const main =  async (ctx,next) => { 
    ctx.response.type = 'html'
    ctx.response.body = await fs.readFile('./html/index.html')
}


app.use(main)

app.listen(3000)


